package com.jyx.common.enums;

/**
 * 枚举类
 */
public enum ResponseCodeEnum {
    //两个枚举对象,写在 ; 之前
    SUCCESS(0,"成功"),
    FAIL(1,"失败");

    private Integer code;
    private String msg;

    ResponseCodeEnum(Integer code, String message) {
        this.code = code;
        this.msg = message;
    }

    ResponseCodeEnum() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String message) {
        this.msg = message;
    }
}
